cookies: use os.OpenFile to open the file instead of reimplementing that logic in our own application
cookies: use 0644 instead of 644