Advanced oxidation for the treatment of resin and fatty acids