encode unicode text in footnotes