Fixed Firefox issues: URI encoded element id and send {} as body when no params.