Insights into the Mode of Action of Chitosan as an Antibacterial Compound