Changed BytesIO to StringIO in context tracker.