fixed email msg encoding problem