Purpose:
Encodes a text string to ensure that it is safe for inclusion as part of a URL. In addition to the encodings performed by Escape, spaces are replaced with %20 and # with %23.
Parameters:
Parm Text string to be encoded