XCOMMONS-440: Can't store an extension with a dot (.) or a star (*) in its name on Windows
(cherry picked from commit 2387c7315509f4703e9bb2bd4d14ca4342fe5553)