Corrected function toUtf8.
Update BLE.m

Bugs on line 1002 and line 1056.
Update BLE.m

Fixed the bug on writeCharatistics.
New wrapper function readAllServiceData().
Updated comment for how reset works on iOS.
Implementation of reset on iOS, added options to scan to allow duplicates.
Fixed bug in readAllServiceData, updated iOS code to return full UUID strings, empty arrays returned for charactertistics and descriptors in case of error.
Android: printStackTrace() for all exceptions.
Fixed bug in handling of notifications in iOS implementation, added guard against writing to a Client Configuration Descriptor (UUID = 2902).
Improved error handling on iOS and cleaned up code a bit (moved duplicated code to common method).
Updated iOS implementation to handle close and disconnect according to the plugin API specification.
Fixed bug on iOS that happened when writing to a characteristic that do not support write response.
Added onReset method on iOS to do cleanup when the page reloads, any ongoing scan is stopped and conencted devices are disconnected and deallocated.
Android: added native onReset().
Should remove the need for reset-on-reload on the JavaScript side.
Android: in onReset(), if mGatt is null, don't use it.
close(): corrected documentation and function on Android.
rssi: Handle case of double call.
Android: don't call registerReceiver more than once.
Even if initialize() is called more than once.
Fixed bug in iOS plugin that caused an assert to trigger when a characteristic has both write type flags CBCharacteristicWriteWithResponse and CBCharacteristicWriteWithoutResponse set.