Updated urlEncode and urlDecode methods to use iOS 7 methods.