handling unicode errors and changed whitelist to tripfilter