fix java.nio.charset.MalformedInputException

spark running on windows will throw the java.nio.charset.MalformedInputException. that's because windows use ISO8859-1 for Source.fromInputStream