Adds UTF-8 encoding to getBytes for html in TOC generation

getBytes was called without an encoding specification, garbling non-ASCII
characters that have not been encoded in the html source file. Fixes #24
Merge pull request #34 from dl1ely/master

Adds UTF-8 encoding to getBytes for html in TOC generation