fn ascii_check(c: char, allow_unicode_chars: bool) -> Result<char, EscapeError>