If we want  to start using BytesIO instead of StringIO  we should do it in all our code, but this is not part of this pull request.