serializeParam = function (value) {
        return encodeURIComponent(value).replace(/%20/g, '+');
    }
Search param name and values should be encoded according to https://url.spec.whatwg.org/#urlencoded-serializing
encodeURIComponent() produces the same result except encoding spaces as `%20` instead of `+`.