added encoding in header