fix exception for non-ascii characters in file name