reuse the format value in case no file extension is present when writing
reuse the format value in case no file extension is present when writing

fairly rare occurrence but I have seen it happen, and it’s annoying
when it changes to generic txt

tjparnell/biotoolbox