Bug fixes: string decoding and qc write contigs file