Added support for Unicode when marshalling strings.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>