Match both utf8 and UTF-8.