Fix parsing dotted hostnames.