This function encodes all the characters in data except the alphanumerics. 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).