Encode control chars {} and \ when writing RTF
Encode control chars {} and \ when writing RTF

Currently these characters get writter out verbatim to RTF stream, rendering the result invalid.
Instead they should be escaped with a leading backslash.

kippr/pyth,kippr/pyth