KN-5893 Bug fix: ToLower() replaced with ToLowerInvariant()