Spot when second hash is encoded in fragment.

This switches to using location.hash, rather than location.href, and copes whether the second hash is given as "#" or "%23". This seems to happen with links in Colloquy for example.