proper encode utf-8, fix #74