code: public static String urlDecode(String text)
      {
          String urlEncodedString=text;
          if(text!=null)
          {
              try
              {
                  urlEncodedString=URLDecoder.decode(text,SpiUtil.UTF_8_ENCODING_NAME);
              }
              catch(UnsupportedEncodingException exception)
              {
                  throw new FaxException("Error while URL decoding text.",exception);
              }
          }
          
          return urlEncodedString;
      }
docs: This function URL decodes the given text.
  
  @param   text
  The text to decode
  @return  The decoded text