Using `io.BytesIO` is more Python 3 friendly than `cStringIO`.