Added utf8 and encoded file content checks