Fix for ios 7+ vs <7  base64EncodedStringWithOptions/base64Encoding

Tested in simulator only, but it seems to work ok.