encode utf-8 before print