Fix the Bobby Tables bug

Previously, a method added to NSString would not escape special
characters when forming URL query strings. Pulled some code from
AFNetworking to fix that without changes to the interface. The
new method resides in a category on NSDictionary.