Add support for both UTF8 and UTF16
Fix support for both UTF8 and UTF16 Dont cast to char and append directly, but instead use `Encoding` class to convert the data in the buffer. Also set Console output to UTF8 mode for cases where it outputs UTF8 but isnt set yet