Changing names to proper file extension