fix Python 3 binary string