Swapped deprecated cstring method for utf8 string.

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