private ByteBuf convertErrorString(final String error, final ByteBufAllocator allocator) {
        final ByteBuf encodedMessage = allocator.buffer(error.length());
        encodedMessage.writeCharSequence(error, CharsetUtil.UTF_8);
        return encodedMessage;
    }
A highly use-case specific serializer that only has context for HTTP where results simply need to be converted
to string in a line by line fashion for text based returns.
gremlin-server/src/main/java/org/apache/tinkerpop/gremlin/server/util/TextPlainMessageSerializer.java