Fix encoding issue in logs