Made a mistake and commited wrong changes.

The last changes were a mistake and broke the Obj-c wrapper. Sorted
using UTF8String and not deprecated.