simplify parameters structure and percent-encoding