There is probably a problem in the way the script file is encoded at upload / download or someting,
but ultimately, if doc is converted to UTF-8, which can't be done from REAPER IDE but can be done from Sublime Text 8,
it works as expected :
IMHO, Just use the X letter if this is trouble. It may be more portable to other program/script that could have encoding issue as well.