make sure do not encode the query params upon submitting the url to the template.  They are already encoded.   And they need to stay that way prior to sending in otherwise the potential json '{' will confuse the parser into thinking there are replacement {} values of which there are none.