suppress htmlentities() warning when trying to encode an array

- additionally instantiate the text helper, instead of reloading