Fix the encoding of the returnparams (used when getting back to the grading page)