When I print the file pathMake sure that the terminal system you are printing them on supports those characters (make sure it supports ISO Latin 1). If in doubt, use
ord in a loop to print out the value of each character to make sure no conversion is going on. For example:
my $filename = 'è or å,ä,ö';
for my $char (split '', $filename) {
printf ("%02x ", ord($char));
}