Do not leave \r lying around

When files contain line endings like `\r\n`, only the `\n` gets properly removed. This should fix that for my use cases (albeit not necessarily throughout the entire gem).