Allow dots and dashes in hostnames