what about simple notepad wrapper?
$kf=createobject("kixtart.form")
$tb=$kf.controls.textbox($mytext,0,0,0,0)
$mytext=$tb.text

that should remove at least some control-chars.
haven't tested for all though...
_________________________
!

download KiXnet