fix instanciating Decoder from ArrayBuffer