Ensuring importer doesn't create illegal layer names.

Backport of #828.

Conflicts:
	src/extension/importer/core/src/test/java/org/geoserver/importer/ImporterDataTest.java