Loose root, tree, and encoding dependency.

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