Allow dashes in extensions (bug #2835)