docs: public boolean tryDecode(byte[] bytes, @Nullable Charset charset) {
      if (charset == null) {
        return false;
      }
      CharsetDecoder decoder = charset.newDecoder()
        .onMalformedInput(CodingErrorAction.REPORT)
        .onUnmappableCharacter(CodingErrorAction.REPORT);
  
      try {
        decoder.decode(ByteBuffer.wrap(bytes));
      } catch (CharacterCodingException e) {
        return false;
      }
      return true;
    }