spellcheck: Fix check for default language if LANG contains UTF-8

g_strndup() copies bytes, not UTF-8 characters.