server/upload*,src/health*: fix encoding of the json data