Assess if a file is UTF-8 encoded.
Examples
writeLines(c("Hello, world!"), "utf.txt")
writeLines(c("Hello, world!", "\xb5g/L"), "non-utf.txt")
isFileUTF8("utf.txt") #TRUE
#> [1] TRUE
isFileUTF8("non-utf.txt") #FALSE
#> [1] FALSE
unlink("utf.txt"); unlink("non-utf.txt")