cookie.rs: now use &str match instead of ~str match.