If locale string has null character, we should ignore it. Because it is invalid tag. Differential Revision: https://phabricator.services.mozilla.com/D218807