Does this work if the XML has a different declared encoding than utf8?  Can we add a test case for that?