[BZ-1087871] allow to specify encoding for any Kie resource