# Functions
Dos2Unix converts given DOS-line endings to UNIX-line endings.
IsTextFile is a best effort to determine if a file is a script file (with a known file extension) or a file that starts with a shebang (!#).
RemoveBOM trims the BOM prefix from provided the data and converts the text to UTF-8 if it was encoded as UTF-16 with BOM.