Fill a spray bottle with hydrogen peroxide. Spray it until damp or just put it in the washer and dump a bottle of peroxide over it. Make sure it is completely wet, let set for 5 minutes and wash as usual.
Walmart has the large bottles of peroxide for less than 1.00.
What you are smelling is the bacteria trapped in the fibers. The peroxide won't harm the fibers like bleach will. It also rinses clean. I use it for my cycling clothes.