[#1238] Correctly log the content of the MessageBuf and not depend on MessageBuf.toString()

Add an extra static method to BufUtil which will convert the content of any MessaBuf implementation to a String