Absolutely stay safe!
You might want to consult with your local battered womans shelter also for advice prior to filing or saying anything of your plans to your husband. The professionals there are specialists in how to best keep yourself safe during the process--even if you stay in your home--and they often know the local attorneys with the most experience in these situations. They can also facilitate police cooperation, should that be necessary.
Please don't underestimate your safety needs.