Fixed getting xml file as a .txt file by email.