Better wchar string detection