backport socks codec to 3 branch

There are several issues with backporting:
[ERROR] Undefined reference: java/lang/String.getBytes(Ljava/nio/charset/Charset;)[B in netty/target/classes/org/jboss/netty/handler/codec/socks/SocksAuthRequest.class
[ERROR] Undefined reference: java/net/IDN.toASCII(Ljava/lang/String;)Ljava/lang/String; in netty/target/classes/org/jboss/netty/handler/codec/socks/SocksCmdRequest.class
[ERROR] Undefined reference: java/net/IDN.toUnicode(Ljava/lang/String;)Ljava/lang/String; in netty/target/classes/org/jboss/netty/handler/codec/socks/SocksCmdRequest.class
[ERROR] Undefined reference: java/lang/String.getBytes(Ljava/nio/charset/Charset;)[B in netty/target/classes/org/jboss/netty/handler/codec/socks/SocksCmdRequest.class



The problem with IDN methods is because it was only added in java 6