[#18616] Fixed encoding problem in the export of revisions