Fix filename decoding when calling fc-match

Fixes #1879