Specify an input encoding, receive a stream of encoded data