encode unicode text in footnotes

Accents and other unicode characters in footnotes are not encoded, and thus appear garbled in Word and other editors. This encodes the text to make sure they are displayed correctly.