add enconding, and remove line endings changing