Change cStringIO to StringIO for Unicode handling

Fixes #4, but also removes xml encoding declaration due to lxml errors.