don't open XML in binary mode; unicode and StringIO compatibility names