Wrapped encodeURIcomponent in try-catch to eliminate errors on malformed captures.

My attempt to fix https://github.com/visionmedia/express/issues/1734