Changed: StringIO -> io.BytesIO
Fixed for consistent test results. (hopefully...)