fix delete file fail if the file name contains 2-bytes chars