Chitosan-Based Sustainable Textile Technology: Process, Mechanism, Innovation, and Safety