Resolves: tdf#147421 Do not use OUString::replaceAll() to strip null-bytes
It reallocates and concatenates for each replacement so for
massive amounts takes ages.
Change-Id: Ibe1673fd4775c5b95833000669c1a24e718fd77c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129971
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
(cherry picked from commit
4b0c17609c2cca326bbcc9e8488a327a4a9ea952)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129938
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>