Added support for Unicode when marshalling strings