#6792: set default encoding if user provided a blank one for a term or synonym
codebase used to migrate to java8 the production system