Fix problem in dealing with save file name when writing save file in unicode mode.