fixed normalize_params for encoded params