I am able to circunvent this problem from within vim. crip creates its 'filenames.txt' encoded as latin-1. as vim reports via
:set fileencoding ? So, if we change the encoding to utf-8 :set fileencoding=utf-8 that file is saved with the new encoding, and the problem goes away. It's a dirty trick, but it works for me without touching the code. I assume our LOCALE is set to utf-8 Cheers, Luis Sanjuán