added .gitignore
added detect_file_encoding()