Fixes for string marshaling in FFI
Merge pull request #1284 from sharadkjaiswal/DataMarshaling

Fixes for string marshaling in FFI