Bad parameter check for extended filename
Extended filename check for filename end, not ext filename start, which can result in double question mark in filename :
if filename_extension:
if not out_fn.endswith('?'):
out_fn += "?"
out_fn += filename_extension
TODO: check ext_filename start instead of filename end
Edited by Cresson Remi