Change java.nio.charset.StandardCharsets.UTF_8 to "UTF-8" to support older Java