Encodes the provided tag for use in URLs.
Example usage:
val encoded = encodeTag("#1 2 3 ab C")// encoded will be: "%23123ABC"
The encoded tag with the "%23" prefix.
The tag string to be encoded.