remove usage of StandardCharsets (java6 compat)