As discussed on irc, can you make that conditional to whether sys.stdout.encoding is set?