java.nio.StandardCharsets -> apache.Charsets
for jddk6 compilance.