[NSString stringWithCString:] is deprecated, however, [NSString  stringWithCString: encoding:] is not.
https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/Reference/NSString.html#//apple_ref/occ/clm/NSString/stringWithCString:encoding: