spotbugs-sast use US-ASCII encoding, thus fail on UTF-8 characters

The spotbugs-sast job of the SAST.gitlab-ci.yml template uses US-ASCII encoding and thus fails to run the tests of the SOSL project which uses UTF-8 encodings of characters that do not have US-ASCII equivalents.

The problem is visible here: https://gitlab.com/sosl/sosl/-/jobs/802331672

I tried to configure the job to use UTF-8 encoding, but I was unsuccessful: https://gitlab.com/sosl/sosl/-/blob/master/.gitlab-ci.yml

Do you have a solution to make it work?

Thanks