If Geany can't detect the encoding of a file, it
either writes strange characters of even loops.
I attach a sample file like I commonly have to edit.
I guess the problem are "binary" characters (\x00-\x1F)
which I need in these files (and they make sense!),
although these are text-files.