Fixing python3 compatibility. Convert binary string to normal.