File name and extension splitter