GTNPORTAL-3570: Reduce the impact of the char and text encoders

https://issues.jboss.org/browse/GTNPORTAL-3570