Obtains a dictionary representation of an NSAttributedString, and re-creates a NSAttributedString from such a representation