Fixed locale handling issue.