Fix bad casts from bifurcated StringIO impl.