In any case, peroxide works. So does vinegar. The proportions are different, of course. I prefer chlorine myself, but if you want to use something different, check these sources:
https://survivalrecovery.wordpress.com/2012/07/10/using-hydrogen-peroxide-h2o2-to-purify-water/
http://www.cleanwaterstore.com/blog/eliminate-well-water-odors-four-reasons-why-hydrogen-peroxide-well-water-treatment-is-best/