Extractor UTF8 tests (plus fixes to XML extractor)

* Add comprehensive UTF-8 verification for all three major extractors.

* Fix some areas in the XML extractor that were mangling UTF-8.