Better cookie parsing, this fixes #8