Support anchor fragments in URLs (e.g. /foo#bar)