Encoding errors with catalog searches

This fixes some regressions introduced by !1545 when searching the catalog for non ascii text

See merge request !1752
1 job for fix/translationContext_request
in 0 seconds, using 0 compute credits, and was queued for 0 seconds