Fix segfault on get_string

Signed-off-by: Shane Bryan <shane.bryan@intel.com>