Ignore urls after non-whitespace for intern match

This prevents matching a URL on an external site with the URL of the origin server passed in the querystring. This is common in the case of generating a share URL on social media that points back to the original page. Resolves #509.