Added utility methods for working with filenames