Avoid duplicating string parameters.

Avoid copying string parameters by guaranteeing that the parameter will
be alive until the end of the method. libuv handles the copy of the
string beyond that.