Regenerate ToC
Remove whitespace
Build index.html as part of target `all'
Strip added newline from encoded result