[BZ-1087871] allow to specify encoding for any Kie resource
(cherry picked from commit 49dfc2fc1629f8bc99a8959ab67c1ddce6d30b94)