Fix some crashes in case of connection errors
Merge pull request #3 from daschuer/ascii-support

Fix some crashes in case of connection errors