Wiki: Replace TOC with a python generated one
- Replaces terrible anchor links with header content based ones
- Fixes quirks with oddly ordered headers
- Fixes html in headers appearing as text in TOC
Fix unicode encoding issue