This should use `MCStringLastIndexOfChar` instead - aclip.cpp in not a Mac specific file, there is no need to use a UTF-8 string here. Plus, there is a function `setname` which takes an MCStringName, and suits better here