added character encoding filter