Fixed issue with commands escaping
Changed a lot of the utf16 into utf8 as well as major API refactoring