String to URL
let stringOriginal = "http://www.google.de/json?origin with space" let stringUrlEnc = stringOriginal.addingPercentEncoding(withAllowedCharacters: .urlHostAllowed)