Fix spurious params and body encoding

Fix typo as well