pblock *pb is the pblock to be copied.
char *str is the string into which the pblock is to be copied. This string must have been allocated by MALLOC or REALLOC, not by PERM_MALLOC or PERM_REALLOC, which allocate from the system heap.
Each name-value pair in the string is separated from its neighbor pair by a space, and is in the format name="value."