Some work on digits, footnote refs now support unicode.

Add test for unicode footnotes.