Fix crash on error pages with URLs not encodable in latin1.

It seems PyQt does some implicit latin1 encoding when we set the content
attribute to a string rather than a bytes object.

Fixes #127.