Filename extraction, neat class.