Don't expect UTF-8 encoding issue when detecting PDF file.