Make SOCKS5 work with TLS sockets