Maybe it should. Here, the file is opened without an error if I force "Without encoding". This is probably because the encoding detection code is not used then and so won't fail on NULL bytes.
But the file is *not* opened without errors because in Geany, it is loaded until the first NULL byte and then cut off.
I agree this should be better and an error or at least information shown to user.