Escape current value for input field

Values like "Don't do this" would break because of the unescaped
quote.