Add support for -x (--output-xml) commandline option

Without this post-processing, interpreting the output as XML is
very problematic; e.g. <br>, <poem>...</poem> etc. seeps through,
as well as lonely & characters.