Fixed parsing of url host.