As proposed in https://github.com/ppy/osu-server-beatmap-submission/pull/5#discussion_r1861680837.
Path.GetExtension()
To avoid filename escaping