use `isName(cidEncoding)` here instead of `cidEncoding`