Personally, I would just transform every character ==0 or >127 into a \x or \u escape (or since this is XML you could use an entity reference, &#x;). There shouldn't be a ton of them and it isn't like XML is small anyway.
http://gwt-code-reviews.appspot.com/61801 --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~----------~----~----~----~------~----~------~--~---
