CMS-2762 Make ImageSelector set a valid name of embedded image content

New implementation of ContentName.ensureValidName
Merge pull request #517 from enonic/CMS-2762

CMS-2762 Make ImageSelector set a valid name of embedded image content