Fix filter encoding (issue #11)