removed unnecessary require statement
Merge pull request #1688 from menzoic/issue/menzoic-1

removed unnecessary require statement
Added safe  encodeURIcomponent to eliminate errors on malformed captures.

Moved decodeURIComponent wrapper function into utils

Added test for malformed URI param extraction support (#1735)