5775b00570
Particularly in places like the lockfile code where we were iterating on a list of packages, validating UTF-8 and `memcpy()`ing strings from C is...well, unnecessary. I don't think there's any actual real performance concerns right now but let's use this as a best practice because the patterns we establish *will* be copy+pasted or at least used as inspiration for other places where performance might matter.