fixed unterminated string BAM/SAM processing bug