 
     type        = if isBlank then "blank" else "sample"
     name        = if name is "" then null else name
+    name        = name.replace(/[^a-zA-Z0-9\/\-.]/g, '') if name
     manifestStr = defaultManifest type, name
     manifest    = JSON.parse manifestStr
     appPath     = getAppPath manifest

                  color           : "#444444"
                  diameter        : 12
                callback          : =>
                  name        = newAppModal.modalTabs.forms.form.inputs.name.getValue()
                  type        = newAppModal.modalTabs.forms.form.inputs.type.getValue()
                  manifestStr = defaultManifest type, name
                  manifest    = JSON.parse manifestStr
                  appPath     = getAppPath manifest

              contents  : manifestStr
          , cb

        # if isBlank
        #   stack.push (cb)=>
        #     @kiteController.run
        #       method      : "uploadFile"
        #       withArgs    :
        #         path      : escapeFilePath "#{fsFolder.path}/index.coffee"
        #         contents  : """
        #                       do->

        #                     """
        #     , cb

        stack.push (cb)=>
          @kiteController.run
