Filename extensions do not contain slashes

Now filenames like "../foo" don't extract a bogus extension of "./foo".