rtf_encode function

Render to RTF Encoding