Improved header handling for FASTA files