Encode characters in a URL
ns_urlencode data
This function encodes all the characters in data except the alphanumerics
and the characters $-.+!*'()
. The encoding for a character is
a "%" followed by the two-character hexadecimal representation for the character.
This encoding is defined in RFC1738, Uniform Resource Locators (URL).