bugfix cookie class: urlencode cookiename