Bug 1863770 - Check locale string whether it has null character. r=platform-i18n-reviewers,dminor
If locale string has null character, we should ignore it. Because it is
invalid tag.
Differential Revision: https://phabricator.services.mozilla.com/D218807