Cyrillic symbols in URL
<p>App crashes with following url:    </p>

<pre><code>let jsonUrl = "http://api.com/алматы/events"
let session = NSURLSession.sharedSession()
let shotsUrl = NSURL(string: jsonUrl)
let task = session.dataTaskWithURL(shotsUrl!)
</code></pre>

<p>Log:</p>

<pre><code>fatal error: unexpectedly found nil while unwrapping an Optional value
</code></pre>

<p>It's because of cyrillic symbols in url. How can I solve this issue. Thanks for your help!</p>