OK. Let's try this.
Under the comment about Japanese backslashes at the top, put the following:
global backslashChar
Delete the declaration of backslashChar in the two encode routines.
At the start of on run (lower down), please put:
Code:
tell application "System Events"
set sysInfo to system info
if (characters 1 thru 2 of (user locale of sysInfo)) as string = "ja" then
set backslashChar to ASCII character 128
else
set backslashChar to ASCII character 92
end if
end tell
Let me know if that works for both English and Japanese modes.