adding filter for invalid utf8 in enrolment database