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