Fix a crash in binaryDecode