Handle incorrect hash/search values in IE6.

In IE6, the hash/search value will not be correct when the hash
fragment contains '?'.

Thanks for pointing out the failure @jdalton!