Move stream encoding to Renderers  (#355)