This is the Trac wiki syntax parser for Text::Markup. It reads in the file (relying on a BOM), hands it off to Text::Trac for parsing, and then returns the generated HTML as an encoded UTF-8 string with an http-equiv="Content-Type" element identifying the encoding as UTF-8.