Instead, rely on the stream being set into the correct encoding during stream initialisation. Change-Id: If141ba09afe1b04f5d836024975f00e8b20d1447 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200462 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>