Decode/encode a docker raw stream