Set sys.stdout.encoding explicitly.