Specify charset in TextFile.
Merge pull request #161 from greboid/newserverdialog

Specify charset in TextFile.