fix MalformedInputException

Source.fromInputStream throws MalformedInputException when spark running on windows