fix bugs about ob_start,desc and encode