reworking IDL char * to cstring