Due the fact that CFURLCreateStringByAddingPercentEscapes is deprecated since iOS 9.0 the method [NSString stringByAddingPercentEncodingWithAllowedCharacters:] should be used instead.
Also we are not sure whether it's a good idea to suppress the warning via:
pragma clang diagnostic ignored "-Wdeprecated-declarations"