Use the proper extname getter.