made more linux compatible

- .csproj file v4 works in monodevelop
- ANSI.cs now reliably uses ANSI codec, not e.g. UTF8
- Program.cs uses the right directory on linux
Merge pull request #2 from flying-sheep/master

made more linux compatible