Fixed endnote/footnote rtf encoding