Fix the json encoding in the body