I think using cloth diapers is nasty, sorry. If our guy poops in his underwear I have found that no matter how many times I wash them they still smell like pooh and then the whole washer makes all the clothes smell like pooh and often pee too.
The washers just don't have a high enough spin to actually get all the soiled water out of the items in the washer. I then have to sanitize the washer at least once to make sure the pooh and pee have been neutralized.
I have to use the hottest water I can and then add bleach to get the smell out, the germs are still in the fibers and that is why they smell. The bleach will wash out.
I use about 1/4 cup for a large load, one load in my washer overloads the 7 sq. foot drier if I put them all in together. With almost a whole scoop of detergent that makes the clothes sanitized and then the washer smells much better.
I also add bleach to almost every load of clothes I wash. Bleach kills bacteria and germs. I add it to the dispenser and if I am washing navy, blacks, and reds I always put it in the water directly and then let it fill up first.
I have very nice looking clothes so I know the bleach does not hurt them. I just do not put in anywhere the clothes can accidentally get some on them.