title: alamofire is not preparing correct url
body: <p>I am using alamofire for calling webservice.</p>
  
  <pre><code>request(url, method: webMethod, parameters: webParams, encoding: URLEncoding.default, headers: headers)
          .validate(statusCode: 200..&lt;300)
          .responseJSON { (response) in
              print("responseresponse===\(response.request)")
  </code></pre>
  
  <p>I am getting below log for the same.</p>
  
  <pre><code>responseresponse===http://www.mywebsite.com/api/searchFlight?
      adults=3&amp;charter=true&amp;directFlight=true&amp;
      flexibleDays=0&amp;flightClass=PREMIUM_ECONOMY&amp;
      offerLimit=10&amp;refundableOnly=false&amp;
      routes%5B%5D=KWI-BOM%2C2018-08-09&amp;routes%5B%5D=BOM-KWI%2C2018-08-25
  </code></pre>
  
  <p>Params I am passing as below &amp; they are of type [String: Any]</p>
  
  <pre><code>[
      "adults": 3, 
      "directFlight": "true", 
      "flightClass": "PREMIUM_ECONOMY", 
      "refundableOnly": "false", 
      "offerLimit": 10, 
      "flexibleDays": "0", 
      "charter": "true", 
      "routes": ["KWI-BOM,2018-08-09", "BOM-KWI,2018-08-25"]
  ]
  </code></pre>
  
  <p>This return me status code as 400 which means Invalid request.</p>
  
  <p>I don't understand why routes are giving wrong output? Routes are coming as below</p>
  
  <pre><code>routes%5B%5D=KWI-BOM%2C2018-08-09&amp;routes%5B%5D=BOM-KWI%2C2018-08-25
        ^^^^^^                            ^^^^^^
  </code></pre>
  
  <p>I was expecting routes to be as below.</p>
  
  <pre><code>routes=KWI-BOM%2C2018-08-09&amp;routes=BOM-KWI%2C2018-08-25
  </code></pre>
  
  <p>I idea what I am missing?</p>