I was surprised to find that `#` is not actually a valid char in a fragment, according to http://tools.ietf.org/html/rfc3986#section-3.5, despite the fact that Firefox supports it. So this is fine.