fix the encoding bug when launch by crontab