Replace extension from file name.