remove unicode, add empty line to eof