encodeURIComponent on all params in js