okay answering my own question here:
it seems like escapeshellarg depends on the configured locale. I still cannot find a simple fix that would end up modifying a php file.
Even on PHPs own documentation people seem to be adding a setlocale before running escapeshellargs…
https://www.php.net/manual/en/function.escapeshellarg.php