Fix warning

Warning "'base64Encoding' is deprecated: first deprecated in iOS 7.0" in iOS 8.1 fixed.