Added RichTextToPlainText Function

For more details, see here