Preserve carriage return when using clang-format's XML interface.

Patch by James Park.