improve console utf-8 support