fast hack for utf-8 console encoding