@makostrike. Thanks for posting. Although you are free to change the code to fit your needs, you should try the built-in UTF-8 options. You should try the various options for “Force encode UTF-8” in the Plug-ins Manager to see which one will work for your situation. Also, please ensure that you have the correct source encoding set. This is the encoding that is used by your server’s file system. It is usually “ISO-8859-1”, but sometimes it is something else.