code: public MessageProtocol withCharset(String charset) {
          return new MessageProtocol(contentType, Optional.ofNullable(charset), version);
      }
docs: Return a copy of this message protocol with the charset set to the given charset.
  
  @param charset The charset to set.
  @return A copy of this message protocol.