Optimized use of XLConvertNSStringToUTF8CString()