treemd: encoding fix, added title to the html output