Synthesis, characterization, and properties of antibacterial dye based on chitosan