Revert "Bug fix: was stripping $var and everything after"

This reverts commit f618fed5cbd961af2a37caf08796a39c7ab7785a.
Merge branch 'master' of https://github.com/wvulibraries/engineAPI
correctly returns query string with removed variable
addition test for encoded urls