When uploading an image file, the file name contains special characters

I’m using Parse Server as the server side for my app, and the client side uses Flutter. When the file name of an image in the iOS photo album contains special characters, such as Chinese characters, the image upload fails and an error is returned. How should I deal with this problem? Thank you!

flutter:

if (assetListSelected.isNotEmpty) {
      for (int i = 0; i < assetListSelected.length; i++) {
        final img = assetListSelected[i];
        final imgFile = await img.originFile;

        final parseFile = ParseFile(imgFile!);

        final response = await parseFile.save();
        if (!response.success) {
          showToast('上传失败: ${response.error?.message}');
          return;
        }
        parseFiles.add(parseFile);
        uploaded.add(response.result.url);
      }
    }

flutter: ╰–
flutter: â•­-- Parse Response
Class: ParseFile
Function: ParseApiRQ.upload
Status Code: 122
Type: InvalidFileName
Error: Filename contains invalid characters.

You can change the character before uploading and sending it to the parse server API.