fix error when file name in current directory contains non ascii char

fix issue #186