Copy lifted NSString arguments before setting their C strings

This seems to fix some unit test races. For some reason.