Replace XML serializer in plaintext export
Fixes #342
Alternative to #929

- using regex pattern/matcher to escape chars below 0x0020 and above 0xd7ff
- using String.Replace to escape XML entities