[BISERER-11268] - Encoding call was breaking on arrays
Merge pull request #273 from brendan-lynch/encode

[BISERER-11268] - Encoding call was breaking on arrays