encode unicode text in footnotes

Adding accented characters or unicode in the footnotes was not being encoded, making the text appear garbled in Word or other editors.