Remove usage of Java 7 only API StandardCharset