decode utf8 before string comparison