Inhibition of virulence factors by chitosan