Convert to using strict_encode64 instead of encoding and gsub to strip newlines.
Convert to using strict_encode64 instead of encoding and gsub to strip newlines.

the-refinery/sparkpost_rails,bosunolanrewaju/sparkpost_rails,kevinkimball/sparkpost_rails