I've seen it mess up output with both. to_xhtml actually seems to be more correct, at least with one of the files I used.