Fix tree getText() to return plain text.

Signed-off-by: Toha <tohenk@yahoo.com>