set locale explicitly to prevent sscanf from puking