Make UnicodeStream Python 2 compatible (RhBug:1063022)

Partially reverts patch aa74c30 which assumed that stdout is unicode-based while it is str-based.