JCR-4238: use StandardCharsets to avoid having to handle UnsupportedEncodingException (ported to 2.16)