fix URLEncoding of the badge parameter