                 if let setup = dict.value(forKey: UserSettings.PlayPrefs.default) {
                     settings = setup as! Settings
                 }
-                if let fileURL = dict.value(forKey: "fileURL") {
-                    self.fileURL = URL.init(string: fileURL as! String)
+                if let urlString = dict.value(forKey: "fileURL") {
+                    self.fileURL = URL(string: (urlString as AnyObject).addingPercentEncoding(withAllowedCharacters: NSCharacterSet.urlQueryAllowed)!)!
                     self.fileType = self.fileURL?.pathExtension
                 }
             }

            
        case "h2w":
            if let dict = NSDictionary(contentsOf: url) {
                if let lists = dict.value(forKey: UserSettings.Playlists.default) {
                    playlists = lists as! Dictionary<String, Any>
                }
                if let setup = dict.value(forKey: UserSettings.PlayPrefs.default) {
                    settings = setup as! Settings
                }
                if let fileURL = dict.value(forKey: "fileURL") {
                    self.fileURL = URL.init(string: fileURL as! String)
                    self.fileType = self.fileURL?.pathExtension
                    break;
                }

            }
        }
    }
    override var displayName: String! {
        get {
            if let justTheName = super.displayName  {
                return (justTheName as NSString).deletingPathExtension
            }
            else
            {
                return super.displayName
            }
        }
        set (newName) {
            super.displayName = newName
        }
    }
    override func makeWindowControllers() {
        let storyboard = NSStoryboard(name: "Main", bundle: nil)
        let controller = storyboard.instantiateController(withIdentifier: "HeliumController") as! NSWindowController
