improve for umlaute and whitespae in pathname