@arj Yeah, that might be right. This converts from string to buffer, and this from buffer to string.
Does sbot talk to the db via packet-stream as well? If it doesn't, then there must be at least one other place where these conversions happen. Changing only some of the conversion functions but not all of them would result in some nasty bugs.