Strip carriage base64 carriage returns

This is necessary for Ruby 1.8 compatibility