Try encrypting with git-bash and not cmd.exe.  Allow travis to add the command to the .travis.yml itself.