Updated vtkAddBeforeSaveHandler.

NB : Now the functions to strip extensions and vtk extensions (such as
_DEV) are not used anymore in any other places than the tests.

We might use them someday, I suggest we don't delete them straight away.