libxml > 2 is must now.  utf8_to_main_string function undefined problem is resolved.