Fix timestamp shown in report emails.
Avoid encoding issue by using bytes instead of strings.