[Bug 1028988] Language panel shouldn't allow setting non-UTF-8 encodings