Fix blaming files containing non-ascii characters
The error was reported by email on a certain file of the linux kernel repo
that is also present in staging.
The added unit-test allows to replicate the issue and the fix of the
filter actually fixes it.