normalize end of file