* The output from sphinx is in cp1252 for CHM builds, which is the only place this script is used. Trying to read it as UTF-8 will fail on non-ASCII characters.
* Copies our .hhk into the build folder * Removes TOC entries that just refer to anchors - it's unnecessary and just clutters up the TOC.