Deal with the case where unrecognized string is given in `language`

You can find strange values in users' config files.