In that example we wouldn't have an issue because it's only replacing `.` and `/`.  As you point out, it should be pretty difficult for someone to actually get a collisions.  In case someone does enter a name like `search/special` and there is already a `search.special` it would effectively just be an alias for the original config, and it would return the contents of the first file for editing.

I think this is probably ok.