fix crash if unicode file name