add support for wchar* null-terminated strings