Remove usage of StandardCharsets.UTF_8 as this is java 7 not java 6.