encode utf8 for print