dirsync: Allow arbitrary length cookies