Fixed endocing errors when sending e-mail