This procedure goal is to get from Unicode an ASCII string to give parameters to curl (a string is actually a pointer), and fully handled by pb. If it works without bugs or memory leaks in multithreaded it's ok for me...
Kenmo> the first example was only to show that some code could have problems with peeks() if the double 0 are not aligned on two bytes boundaries. When you're hacking around with data convert, it's good to know, as good it was for me (thanks to you) to see that peeks() doesn't need only one zero to stop when using -1 as length parameter.