Add UTF-8 encoding filter (BT-56)

Pull request for BT-56 (https://jira.osiam.org/browse/BT-56)
This fixes the encoding problem
please reverse the license header changes, this was like in ever