Handle incorrect hash/search values in IE6.

In IE6, the hash/search value will not be correct when the hash
fragment contains '?'.
Add comment, remove anchors.
Merge pull request #3152 from braddunbar/ie6

Handle incorrect hash/search values in IE6.