Fix #1275: FormPopulationFilter doesn't work with encodings other than UTF-8