fixes in saving email content as html