BAC-940: fixed problem with encoding in emails