bug fixing for utf8 on exporting