Sanitize path in cookies.