[api2] Fixed bug in deleting unicode filenames