fix a bug with none ascii chars in the file name.