fix 3 tests: return (*C.char)(nil) for empty slice