Breaking news: I believe I have finally squashed the long-standing bug which caused ATO to randomly stop working
@emanresuA because string.length in JS counts UTF-16 code units, which caused this bug. But [...string] converts it to an array of actual characters, not code units