public static String encodePathParam(final String pathParam,final String charset) throws UnsupportedEncodingException {
  return encodePathSegment(pathParam,charset);
}

public static String encodePathParam ( final String pathParam , final String charset ) throws UnsupportedEncodingException { return encodePathSegment ( pathParam , charset ) ; }
encodes a string to be a valid path parameter url , which means it can contain pchar * only ( do not put the leading " ; " or it will be escaped .
