Evaluation of different factors affecting antimicrobial properties of chitosan.