Rather than using MCStringGetNativeCharPtr 'bare', it would probably be better to use MCAutoStringRefAsCString here.