remove EOL at the end of file