Fix URL parsing of HTTP inputs with no port.