handle non-ascii characters in directories

Fixes `curd install pyramid==1.2.2`.