Remove needless file name extensions.