Separate extension from filename