Fix negative integer encoding
Fix UTF16 encoding/decoding for strings