netty/netty — pull request #1096 by lw346 (2013-02-27 14:06:49+00:00)
Title: [#82] Add a way to validate charsets without copying the Buf into a String

I've added the method to BufUtils, but I'm not sure if this is the best place or not.

The utf8 method runs in about 70% of the time it would take to do the full conversion, based on my microbenchmarks.