Removed dependency on StandardCharset because it isn't included in JDK6