Make sure carriage returns aren't normalized

Carriage returns were being normalized to newlines and causing the
spec to fail. Added a new spec that tests replace carriage returns in
a file containing carriage returns.