Deprecated Obj-C methods replaced.

Removed deprecated Obj-c methods when casting a cstring to an NSString and visa versa. Set encoding to be unicode.