This (and the set below  - and the other pair later on) should be doing getstringprop(..., P_TEXT, ...). The logic here previously was using the unicodeText so this method would work with Unicode - since MCStringRef's now do that transparently, we can just use P_TEXT.