Solr 6.x — SolrException Unable to create core [xxx] Caused by: Input length = 1

In Solr 6.x if you are getting exceptions like java.nio.charset.MalformedInputException: Input length = 1 and unable to load/reload the…