No, Geany cannot open files with a NUL byte in them, it is written in C where NUL means end of string. Notepad++ is written in C++ which can handle strings with NUL in them. Also Geany assumes that the buffer contents are UTF-8, so as a file is opened its encoding is converted to UTF-8. So if it can't find an encoding that works it won't open the file.