Use urlencode on calc_grouping url parameter.