title: How to convert String URL in Swift 5?
body: <p>Im having a big trouble with URl
  I want to use url for almofire , but unforutnately it always return nil
  or ortherwise , this solutuin return valid URL but with weird $$*%&amp;$( in front of https:// an resulting to always got nil response</p>
  <pre><code>    let req = &quot;​https://api-staging.xx.oo/v1/s-locations/&quot;
      
      guard let percentReq = req.addingPercentEncoding(withAllowedCharacters: CharacterSet.urlQueryAllowed ) else { return nil }
      
      let urlReq = URL(string: percentReq)!
  </code></pre>
  <p>// work , url got , but fetch nothing</p>
  <pre><code>     let urlReq = URL(string: req)! 
  </code></pre>
  <p>// error FATAL</p>