Name: In toUri(), make BytesIO work for Python 2 and 3.
util: In Blob toHex(), make BytesIO work for Python 2 and 3.