rg3/youtube-dl — pull request #560 by phihag (2012-11-27 20:09:03+00:00)
Title: to_screen: Only encode when output stream is binary

Currently, the outputted string gets encoded to bytes if ..

'b' not in self._screen_file.mode # ...

That doesn't seem right.