Encoding value of text input

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