Fix encoding problem.
Fix avl_delete bug and encoding problem.