       # No graphs or components on the remote
       return callback null, remoteObjects
 
+normalizeName = (name) ->
+  name.replace /\s/g, '_'
+
 createPath = (type, entity) ->
-  name = entity.name.replace /\s/g, '_'
+  name = normalizeName entity.name
   if type is 'graph'
     return "graphs/#{name}.json"
   switch entity.language

        notPushed = true
        for remoteComponent in objects.components
          notPushed = false if localComponent.sha is remoteComponent.sha
          notPushed = false if localComponent.name is remoteComponent.name
        return notPushed
      addToPush 'component', localComponent, null, operations for localComponent in localOnly


      for remoteGraph in objects.graphs
        matching = data.project.graphs.filter (localGraph) ->
          return true if localGraph.properties.sha is remoteGraph.sha
          return true if normalizeName(localGraph.name) is remoteGraph.name
          false
        unless matching.length
          # No local version, add to pull
