Use Locale.ROOT by default to parse dates instead of the system locale.

Closes #3852.