Force `LC_ALL` to be `C` in non windows systems. Fixes #3261.