CORE-4442: fixed a character encoding problem and rewrote the metadata element listing services in Clojure