Fix handleURLSlashes() so that it's pretty-URLs-aware
Merge pull request #221 from Shotster/fix-handle-url-slashes

Fix handleURLSlashes() so that it's pretty-URLs-aware