Encode resource with correct profile

Fixes #9465
3 jobs from gajim_1.1 in 4 minutes and 39 seconds (queued for 1 second)
Status Job ID Name Coverage
  Test
passed #9184
run-appdata

00:00:08

passed #9183
run-tests

00:04:17

 
  Build
passed #9185
run-build

00:00:13