slice off the period in extname