replace iOS7 only [NSData base64EncodedStringWithOptions] call