Helper functions to split filenames along underscores.