Language detection was not working fine on Windows when the language was an empty string rather than NULL.