Fix parsing of scheme://host:port URIs