Simplify StreamDecoder as a stream