improve pathname for umlaute and whitespace