Chitosan membrane in separation applications