allow '.' and uppercases in hostnames