adding hacks to deal with character width issues in the rich text wrapper