private static bool IsBinaryFile(string path) {
// TODO: check for content type of the file here
string extension = Path.GetExtension(path).ToUpper(CultureInfo.InvariantCulture);
return String.IsNullOrEmpty(extension) || BinaryFileExtensions.Any(p => p.Equals(extension));
}