@zorg this editor is actively used in lövr, which is a different codebase from löve and doesn't currently include utf-8 library. I'll look into supporting utf-8 at some point.
Thanks for the hint @pgimeno. I'm going to use that line to sanitize the input.