Fix binary object decoding