Use utf8 features of Path::Tiny (not Encode).
ok! is there something similar for output? See the stupid
Yes, but that requires a larger refactoring of your code: You currently spew fractions of the output at many places in the code, and redirect only one place to redirect all output to a file.
I don't want to try refactor now - I believe it makes better sense to do that as part of an even larger refactoring to move functionality into one or more libraries.
myprint()is because I had some unicode trouble. Ok, adding to TODO