Escape a string for use in AppleScript