charset write to cookie