base64-encode the content of the data-value attribute

base64-encode the content of the data-value attribute, if the type is wysihtml. This fixes a problem where links generated by wysihtml5 break the HTML. see https://github.com/werein/x-editable-rails/issues/42