Added automatic extension when saving material as