Adding the `ta_buf_dump()` method

This method deallocs the buffer and returns the internal string (after
replacing the last character by a \0)