resolved fdo#41166 match month and day name word instead of substring

Follow-up, check for ASCII first to avoid calls to i18n, and check the
type flags instead of calls to CharClass methods that give unexpected
results with their masks.

Change-Id: I10e685998299dceb2dbcf1d87ae1de09680b8a99