fixed opening files with unicode chars

fixed opening files with unicode chars in it and update gitignore