Fixes #93: Prepareing ByteBuffer for encoding UTF8 string in packString
#93: Flushes the decoder only when endOfInput == true