improve VCF format compliance

There is another issue not caught in this patch. It seems the output has
trailing whitespace.