fix unicodedecodeerror for cookies by using cookie_date as sessions middleware does