code: private String encode(String value) {
      return this.encode.isEncodingRequired() ? UriUtils.encode(value, this.charset) : value;
    }
docs: Uri Encode the value.
  
  @param value to encode.
  @return the encoded value.