 (defun ycmd--on-close-buffer ()
   "Notify server that the current buffer is no longer open, and cleanup emacs-ycmd variables."
   (when (ycmd-is-server-alive?)
-    (ycmd--notify-server "BufferUnload"
-                         `(("unloaded_buffer" . ,(ycmd--get-full-path-to-current-buffer)))))
+    (ycmd--notify-server "BufferUnload"))
   (ycmd--teardown))
 
 (defun ycmd--teardown ()

      s
    (encode-coding-string s 'utf-8 t)))

(defun ycmd--get-full-path-to-current-buffer ()
  "Get the full (encoded) path to the buffer returned by `current-buffer`, or the empty string."
  (ycmd--encode-string (or (buffer-file-name) "")))

(defun ycmd--get-request-data ()
  "Generate the 'standard' content for ycmd posts.


         (pos (point))
         (column-num (+ 1 (ycmd--column-in-bytes)))
         (line-num (line-number-at-pos pos))
         (full-path (ycmd--encode-string (or (buffer-file-name) "")))
         (file-contents (ycmd--encode-string
                         (buffer-substring-no-properties
                          (point-min) (point-max))))
