workaround for hash auto decoding browsers

This tackles the same issue as pull request #14 but with a slight different solution.