Yes, that's a decent quick fix. Just use <link rel="canonical" href="http://www.example.com/"/>
More complex would be using a 301 redirect to remove the query strings. If you're not using any query strings, that's probably a better way to go. But if you are using some query strings, then it gets more complex - doable but complicated.