Add unicode function for sample collector