windows:File.extname for a filename ending with a dot returns ''
fails:File.extname preserves the encoding of the path
