tls: include invalid method name in thrown error
When an invalid TLS method name error is thrown, include the invalid name in the error message.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines