fix svg file generated filename that avoid wrong extension replace when filename contains dots