It is supposed to save in format 5 to avoid the hassle with palettes. Can you explain the problem further? Exporting seems to work fine on my end. The only thing I can see is that the null header at the end of the file is defined as format 0, but that is intentional and shouldn't matter. Laserboy also does that.