StringIO require string types