Now supports unicode dirs and files.