Fix concurrency issue with CharsetDecoder.

Signed-off-by: angelsl <hidingfromhidden@gmail.com>
Limit guava to test scope; don't import the whole of java.awt.

Signed-off-by: angelsl <hidingfromhidden@gmail.com>