title: Spark read file fails with latin1 encoding
body: <p>When I try to read file with  options headers false and encoding latin1... things are working fine. But if i try to read file with headers true and encoding latin1... </p>
  
  <p>getting error like below</p>
  
  <pre><code>java.lang.IllegalAccessError: tried to access method com.google.common.base.Stopwatch.&lt;init&gt;()V from class org.apache.hadoop.mapred.FileInputFormat
  at org.apache.hadoop.mapred.FileInputFormat.getSplits(FileInputFormat.java:312)
  at org.apache.spark.rdd.HadoopRDD.getPartitions(HadoopRDD.scala:200)
  at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:253)
  at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:251)
  </code></pre>
  
  <p>Line of code to read data without headers.</p>
  
  <pre><code>dataset = sparkSession.read()
  .option("delimiter", "|")
  .option("header", false)
  .option("encoding", "ISO-8859-1")
  .schema(getDFHeaders())
  .csv(inputFilePath)
  .toDF();
  </code></pre>
  
  <p>Line of code to read data with headers</p>
  
  <pre><code>dataset = sparkSession.read()
  .option("delimiter", "|")
  .option("header", true)
  .option("encoding", "ISO-8859-1")
  .csv(inputFilePath)
  .toDF();   
  </code></pre>