Constructing antibacterial polymer nanocapsules based on pyridine quaternary ammonium salt.