         
         func escape(string: String) -> String {
             let legalURLCharactersToBeEscaped: CFStringRef = ":/?&=;+!@#$()',*"
-            return CFURLCreateStringByAddingPercentEscapes(nil, string, nil, legalURLCharactersToBeEscaped, CFStringBuiltInEncodings.UTF8.rawValue)
+            let cfString =  CFURLCreateStringByAddingPercentEscapes(nil, string, nil, legalURLCharactersToBeEscaped, CFStringBuiltInEncodings.UTF8.rawValue)
+            return cfString as! String
         }
     }
     


extension NSURLRequest: URLStringConvertible {
    public var URLString: String {
        return URL.URLString
    }
}


            }
        }
        
        components.append("\"\(URL!.absoluteString!)\"")
        
        return join(" \\\n\t", components)
    }
