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