Fixed "encode_text" and tokenizing with flag set.
Updated changelog.
Converted docs to XML.
Added xml and txt conversion scripts.