fix mediawiki headers and html entities