Use StringIO instead of cStringIO to avoid unicode issues.
Merge pull request #201 from edx/will/fix-unicode-error-in-scenario-xml

Encode unicode as UTF-8 before passing it to cStringIO