Replace XML serializer in plaintext export

Fixes #342
Alternative to #929

Preserves all emojis :-)
caps for constants