- (NSString *)encodeToPercentEscapeString: (NSString *) input
{
NSString *outputStr = (__bridge NSString *)CFURLCreateStringByAddingPercentEscapes(
NULL, /* allocator */
(__bridge CFStringRef)input,
NULL, /* charactersToLeaveUnescaped */
(CFStringRef)@"!*'();:@&=+$,/?%#[]",kCFStringEncodingUTF8);
return
outputStr;
}