Replace XML serializer in plaintext export

Fixes #342
Alternative to #929

Preserves all emojis :-)
why do we need String.valueOf here?