Fix flaw in Uni->Byte conversion that resulted in truncated values.
Fix flaw in Uni->Byte conversion that resulted in truncated values.

seanofw/smile,seanofw/smile,seanofw/smile,seanofw/smile,seanofw/smile,seanofw/smile