If that is AC directly from the mains, please send my condolances to any close relatives you may have.Good idea -- I'm well into mine at the moment though. I've rectified the AC and have a very ugly, very non-half-elipse like waveform all above 0V. So far so good! Some capacitors and a regulator and I will be good.
What should be and what are, are two different things sometimes. Right or wrong, you need a permit to build a deck in your back yard.As far as the law part.
Why should there be a law against changing things you own in your own house?
The government's job, contrary to it's behavior lately, is not to keep us safe from everything possible. Most of the laws made are to be broken, since a government cannot control an innocent man.