This test shows that we fix up the title of the document when the encoding changes mid parse.