Fix for SPARK-1758: failing test org.apache.spark.JavaAPISuite.wholeTextFiles

The prefix "file:" is missing in the string inserted as key in HashMap