fix to unallow special chars in location hash