Slugify with no extension.

Hey,

This fixes little bug where an IndexError is thrown when slugifying a file with no slug, and no extension on the filename.

Cheers,
Joe