Cookies still need to be www-form-urlencoded using the URLEncoder and URLDecoder classes to maintain backward compatibility.