Here you can use MCStringCreateWithChars() to make the string - t_text at this point is a pointer to UTF-16 encoded data, and that is a sequence of unichar_t's which is what WithChars expects. (again the UTF-8ness here was to work around the fact you couldn't line ending convert a UTF-16 string in EP).