#4996 broke File filters management

I've found PR #4996 broke how custom file input filter specification is handled; both `2.2.3` and `2.2.4` releases are affected.

I've tried hard to figure out why, but I'm sorry I was not able to :confused:

Here the tests: note that both assertions fail, not only the first.