Fix a case of nontotality and correct error region for invalid unicode scalar values