fix ascii encoded file