Add GetExtension method to Filename class.