Added compile flag handling, started testing UTF8-UTF16 conversion