Null-terminate private value strings correctly.