Fix for ios 7+ vs <7  base64EncodedStringWithOptions/base64Encoding