encoder: set DFS limit.
encoder: set max phrase length.