Base64.encode64 in Ruby split the resulting string
Be careful when using Base64 library and the encode64 function. Unpleasant feature of this function is that after every 60 characters add to the resulting string “\n”. Read More
Posted on 26 June 2013