Better cookie parsing