locale and strcasestr changes