Escape cookies properly