NSData base64Encoding deprecated in iOS 7.  Uses base64EncodedStringWithOptions: if available and suppress deprecation warnings if it is not available.