unique_ptr is used to remove memory leak in V8StringToChar