This gets around weird errors when the <?xml processing instruction has things like utf-16 in it. This should maybe be fixed another way later.