Added ID escaping support to footnotes plugin. Prevents linking issues w...

...ith footnotes denoted by symbols.

Resolves issue #2481.