Include file extension in curve name

Includes the file extension in the curve name. The curve name is displayed e.g. in the legend list as shown in the figure below.