docs: public void setCharset(String charsetName) {
          if (StringUtils.isEmpty(charsetName)) {
              setCharsetImpl(null);
              return;
          }
  
          Charset newCharset = null;
          try {
              newCharset = Charset.forName(charsetName);
              if (newCharset != charset) {
                  setCharsetImpl(newCharset);
              }
          } catch (IllegalCharsetNameException | UnsupportedCharsetException e) {
              log.error("Failed to set charset: " + charsetName, e);
          }
      }