Attempt to fix locale detection on Windows