I need to create URL from string https://example.com/media/caffè.mp3
let url = URL(string: "https://example.com/media/caffè.mp3") // fails to create URL
But in Safari it works as expected.
How can I encode this string or something to get working URL from it?