Added multiple code page support.

Added multiple code page support. It covers some cases with fcharset definition. Please, review the code. The test document: test-doc.rtf. 
Thank you.