Fix <len> prefix handling in message decoder