Fix #144 for dos format files.