Clean and repair mailing HTML automatically by Tidy