Fix (and improved) sentence extraction

Fix unicode decode error, and add XML output for sentences.