Fix writing Unicode to stderr for Python 2

Writing unicode characters to stderr when the latter
is redirected to a file would fail on most default Linux
distros with an "UnicodeEncodeError: 'ascii' codec..."
exception.

See https://github.com/rg3/youtube-dl/issues/1435