SQLite Forum

Unicode and CLI for Mac
If you cannot decipher what link in the chain is funky, you need to see the binary being passed. A debugger is good for some of that. And in the SQLite shell, you can cast your strings to blob and display then as hex.