Use BytesIO and not StringIO because unicode is stupid