in reply to treat files with umlauts (utf)

see perlunitut: Unicode in Perl#I/O flow (the actual 5 minute tutorial) and perlport

what readdir returns are bytes, so you need to decode them as utf before any appending/concatenation

before using -f/stat... you need to use encode_utf8

I imagine if you stick with Path::Tiny -> children then this behaviour of perl unicode strings feature you've stumbled upon won't play a role, and -f will work the way you want it to work

use Unicode::UTF8 qw[decode_utf8 encode_utf8];