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