xmldemo: Do proper UTF-8 handling, for input file