Maybe better to throw something like "Prefix file does not start with expected \"" + MAGIC + "\" header"

So people will not have to look up what the magic header is.