Fixes buggy XML encoding discovered by @pipelineoptika