jp3d/jpwl convert: fix write stack buffer overflow