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

fixes #1