code: private String addAndEncodeValue(String originalValue, String newValue,
        boolean encode) {
      return addAndEncode(originalValue, null, newValue, encode);
    }
docs: Adds the and encode value.
  
  @param originalValue the original value
  @param newValue the new value
  @param encode the encode
  @return the string