Encoder and Decoder for gitfile streams for js-git.