Fix SOCKS5 authentication to comply with RFC 1928 and 1929