Resolve Yajl encoding incompatibility
What does this MR do?
When Yajl encoder was provided a string with ASCII-8BIT, incompatible character encodings: ASCII-8BIT and UTF-8
error was raised.
Let's use StringIO
in order to build the result out of chunks.
Related issue: #249185 (closed)