code: public Charset charset(Charset defaultValue) {
          return charset != null ? Charset.forName(charset) : defaultValue;
      }
docs: Returns the charset of this media type, or {@code defaultValue} if this
  media type doesn't specify a charset.