UN envoy to Yemen says optimistic about peace deal