Switch to the C locale before parsing floats.