Replaced slow and outdated character set handling in RTF reader by