Modified to accept bytevector for wchar_t* argument (to store value or so).