Fixed host name parsing for port specified in url