webtools title scraper: unicode, h1 if no title

* Attempt to determine the page encoding and decode as such.
* Use <h1> if we can't find a <title>.