Fixed UnicodeDecodeError in HTML report

Fix and test for issue #114.
Also removed couple of unused imports.