fixed locale handling for parsing logs