Fix error when sys.stdout.encoding is None
Merge pull request #140 from mkomitee/master

Fix issue when sys.stdout.encoding is None