url: fix hostname pattern to not accept empty string

Disallow matching of empty string as a valid hostname.  Could lead to failure in URL remapping tables for http-proxy.