diff --git a/lib/fog/vcloud/compute.rb b/lib/fog/vcloud/compute.rb
index <HASH>..<HASH> 100644
--- a/lib/fog/vcloud/compute.rb
+++ b/lib/fog/vcloud/compute.rb
@@ -300,7 +300,7 @@ module Fog
 
         # Use this to set the Authorization header for login
         def authorization_header
-          "Basic #{Base64.encode64("#{@username}:#{@password}").chomp!}"
+          "Basic #{Base64.strict_encode64("#{@username}:#{@password}")}"
         end
 
         # Actually do the request
Use strict base encoding otherwise breaks for very large org names.