Fix &apos; encoding in text exports