Check if a file is unicode encoded