Encode the query string to fix wrong parsing of &.