Fix C locale breakage