Change cStringIO to StringIO for Unicode handling