tls_generic_test sanitisation.

I love to use it in the proper context, yes, but this is preexisting.