Encoding value of text input for search

Fixes https://github.com/Connexions/webview/issues/651