You don't have to do anything in Safe Mode. Just see if wi-fi keeps turning on even though you turned it off. Safe Mode disables all 3rd party apps, so if you installed some 3rd party app that is causing this problem, the problem should temporarily go away in Safe Mode.