Note that when piping out the stream untouched, I leave everything as undecoded bytestrings. This makes it certain that the output matches the input exactly.