Normalize IE9 URL parsing. Fix for #1764

IE9 appends the port number to the host property of anchor tags on http pages. Strip the port for http and https so that it behaves like everyone else.