Improve C# wrapper management of strings to ensure proper UTF-8 conversion while passing from and to C library. Fix memory leaks. Add .NET wrapper tester.
Add setlocale() to force utf-8 when loading Factory.Instance.
Fix invalid wide string to string conversion when fetching the application data directory, causing non-UTF8 string to be returned. Add missing directory separators.