Added support for wchar_t* and wstring