It segfaults with `StringIO` too.