make unicode fix compat with 5.10

Signed-off-by: Caleb Cushing <xenoterracide@gmail.com>