Fix encoding issue in log