fix “when search with chinese, url is nil.” bug