Fix wstring utf8 confusion and endianess
Fix float and double endianness