More liberal URL validation – now allows for domains like http://example.com/foo#bar.