fixed character issue with setting/getting html/text from richtextarea
in xmleditor; non-breaking space would be inserted in conversion rather
than space; Fixed some encoding declarations