fixing echo response to handle multiple key value pairs in query string