Factor out the code to generate keys in wtperf, include the trailing NUL in the size.