fixed trailing ampersands and question marks potentially fucking up the routing, tested on apache 1.3, apache 2.2 and lighttpd, closes #618. also changed the multislash fix attempt code to work on apache2.x, not apache 2.2, closes #619