LOG.finest("Generating GIG into file: "+generatedGigFile+" while reading from file: "+origin);
generatedGigFile.getParentFile().mkdirs();
FileOutputStream fos = new FileOutputStream(generatedGigFile);
BufferedOutputStream bos = new BufferedOutputStream(fos);
SniffedInputStream inStream = new SniffedInputStream(origin.open());
//String encoding = inStream.getEncoding();
Charset charset = inStream.getCharset();
if (inStream.getWarning()!=null)
{