RTF writer: Properly handle characters above the 0000-FFFF range.

Uses surrogate pairs.  Thanks to Hiromi Ishii for the patch.