Validating SOCKS5 hostname more correctly.