To avoid appending the extra char in vim, you need to set the binary and noeol options, i.e:
:set bin
:set noeol
then save your file. You can add these commands to your .vimrc if you will want them for every file, but I think this case would normally be the exception.
|