[charset] add pattern info for chars and add a pattern_ignore for unknown chars