Patch for non-ascii cookies issue