finish citrusleaf encoding