Fix issue with binary encoded files (images)

grunt.file.read tries to encode binary files to a string, this adds detection for some common binary image formats and skips the encoding for those files