Implement CharacterData.{deleteData, insertData, replaceData}.(fixes #2190)

see #2190