Use HttpString#appendTo instead of HttpString#toString() and a loop.

Use HttpString#appendTo instead of HttpString#toString() and a loop to put a HttpString into a ByteBuffer.