Log registry values properly, bson will convert to utf8-encoded data including any nul characters present in the string as we provide the length.  Callers will often explicitly include nul terminators in the strings so omit them if we see them so we don't end up with a trailing \x00 in the display.