fix pandoc bug where multiple html documents were being included in the same file. involved fixing some utf-8 handling issues.
Merge pull request #44 from Ap0c/pandoc_bug2

Fix pandoc html bug