Add unicode robustness in log file