Moved material name handling from ObjectExporter to MaterialExporter.