replace "window.location.hash" in error messages with "URL #fragment"