encode carriage return (\r)
Merge pull request #1 from roadman/encode_carriage_return

encode carriage return (\r)