fix encoding problem when sending alert by email