=per #15280 Make snapshot header length field deserialize correctly

Fixes #15280

Header length bigger than 255 was completely garbled.