Converting a Netty ChannelBuffer to String is as simple as calling .toString (UTF_8) on a ChannelBuffer. How to create a channelbuffer from a string?
Use ChannelBuffers.copiedBuffer (String, Charset)
In netty 4 you can use Unpooled.copiedBuffer(String, Charset)
Unpooled.copiedBuffer(String, Charset)