Add unicode handling to the signing and verifying logic