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