added missing sizeof and pointer conversion for CharString and UTF16String, so that they can be passed to C routines expecting pointers to the data