Use StringIO over io.StringIO when available