code: public static String encode(String value) {
          if (value == null) {
              return value;
          }
          try {
              value = URLEncoder.encode(value, Constants.UTF_8);
          } catch (UnsupportedEncodingException e) {
              // Do nothing - UTF-8 should always be supported
          }
          return value;
      }
docs: Encodes the given string using URLEncoder and UTF-8 encoding.
  
  @param value
  @return