HTML output format

As I am also looking for HTML output I've implemented an 'output_type' option as per RT#82671. I also included Kevin Ryde's patch for blessed() on HTML::TreeBuilder input from RT#82817 and a fix for the warnings on un-decoded UTF-8 input in this pull request. 

Hope this pull request is helpful - if you'd like me to make any changes please let me know.