Support using SNI from the command line

This resolves issue #401.