Fix StringIO imports and invocations. Fixes #2386
Merge pull request #2390 from danielgtaylor/fix-stringio

Fix StringIO imports and invocations. Fixes #2390.