Revert "better path query parsing in fileserver"
Revert "better path query parsing in fileserver"

This reverts commit 29a023aaad31b093fc0b97ef00d5c055c9083732.

This causes breakage outlined in #26839

saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt