private String encode(String value) {
    return this.encode.isEncodingRequired() ? UriUtils.encode(value, this.charset) : value;
  }
private String encode ( String value ) { return this . encode . isEncodingRequired ( ) ? UriUtils . encode ( value , this . charset ) : value ; }
Uri Encode the value.

@param value to encode.
@return the encoded value.