Estimate format using File.extname