Fixed a bug where non-visible characters were being typed and creating
invalid addresses to connect to.