Made HTTP Content-Type response header charset detection in AgaviFormPopulationFilter more robust, closes #1187