If I have a file named 'Frozen_TLR-2-2D_F_5.1-720p-HDTN.wav' , File::getFileNameWithoutExtension yields 'Frozen_TLR-2-2D_F_5' and not 'Frozen_TLR-2-2D_F_5.1-720p-HDTN' as expected.
Same problem with File::withExtension. If "dat" is given as parameter, result is 'Frozen_TLR-2-2D_F_5.dat' and not 'Frozen_TLR-2-2D_F_5.1-720p-HDTN.dat' as expected.
And in the code, getFileNameWithoutExtension specifically goes up to the last dot in the string. Can't really see how this could fail to work for you..