Does setting source encoding for encode!() help here?

Also we should have some sort of warning message here otherwise users might think they are writing in "???" into the files on their nodes.