Removed deprecated Obj-c methods when casting a cstring to an NSString. Set encoding to be Unicode.