updated rtf export code to handle smart quotes