don't quote the segment twice. Do it only once.

Fixes #4245

The fix is pretty obvious. This thing was getting quoted twice. Obviously that query isn't going to work. Now it works. We can start using SEF Advanced Routing. Welcome to the future.