Updated handling of file: prefix as it's different on Windows and OSX (helps #89).
Added skipping binary files when checking for malformed UTF8.