encoding bug

login crashes always if no encoding chosen
Merge pull request #17 from serus22/master

encoding bug