Encodes string
using the RFC 1738 recommendations: the <constant><>"#%{}|\^~[]'`;/?:@=
&</constant> and space characters are replaced by <constant>"%ab"
</constant> where <constant>ab</constant> is the hexadecimal number corresponding to the character.
string |
a string to encode |
a new string or null |