The value passed in to char_from_unicode isn't hex, it's just a number.