don't rewrite stdout to utf-8 on py3

+regression test

ht/ #40