Filter output with encoding problems