optimize all_name_chars (#3442)

Remove redundant PyUnicode_Check call. Use a static table for checking chars.
1 file changed