cleanup, sanitize cookie value