   [host executor-state]
   (str "http://" host ":5051"
        "/files/read.json?path="
-       (java.net.URLEncoder/encode (get executor-state "directory") "UTF-8")))
+       (URLEncoder/encode (get executor-state "directory") "UTF-8")))
 
 (defn fetch-job-map
   [db fid job-uuid]

            [mesomatic.scheduler]
            [metatransaction.core :refer (db)]
            [metrics.timers :as timers]
            [plumbing.core :refer (map-vals map-from-vals)]
            [plumbing.core :refer [map-keys mapply]]
            [ring.middleware.json]
            [schema.core :as s]
            [swiss.arrows :refer :all])
  (:import java.util.UUID))

;; This is necessary to prevent a user from requesting a uid:gid
;; pair other than their own (for example, root)

                                      :resource/amount (double gpus)}]))])
        commit-latch-id (d/tempid :db.part/user)
        commit-latch {:db/id commit-latch-id
                      :commit-latch/uuid (UUID/randomUUID)
                      :commit-latch/committed? true}
        txn {:db/id db-id
             :job/commit-latch commit-latch-id
             :job/uuid uuid
             :job/submit-time (Date.)
             :job/name (or name "cookjob") ; set the default job name if not provided.
             :job/command command
             :job/custom-executor false
