fix base64 encoding
Use .strict_encode64 for Contents API
Ruby 1.9.2 does not have #strict_encode64