Encode URL Text

Encode a string to be used in a query part of a URL