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
Status Job ID Name Coverage
  External
failed ERP5.UnitTest-Zope2