Is this substantially different from `t.sub(File.extname(t), "")`?