more cleaning on richtext->plaintext sync