Video previews not generated in folders containing special characters

Hello!

I was facing some odd behavior while generating previews for video files.
After some investigations I found that the preview generation for *.mov files happens in the nextcloud/lib/private/Preview/Movie.php and that the command to properly execute the generation is being built using escapeshellarg.

There is a problem here: escapeshellarg removes special characters from the string and in this case, the string is a folder with special characters resulting in a failure to generate the preview as the file is not found!

There is a solution that is to set the location in the PHP file: setlocale(LC_CTYPE, "en_US.UTF-8");
But as many people around the world uses Nextcloud and they may be using special characters in their folder names, I believe that there is something that I need to configure or set in order to make preview work without needing to manually fix nextcloud/lib/private/Preview/Movie.php by adding setlocale(LC_CTYPE, "en_US.UTF-8"); somewhere.

Can you guys help me?
Thanks,
Felipe

Anyone???
There is no video preview if the folder name contains special characters!