Bug: qconf crashes when passing an array of fileURIs as first argument

I have added a test that shows the problem. The test is failing now.

I've spent some time figuering out that filePath should be a fileURI.
I did not manage to separate these two commits. Sorry about that.