Fix for encryption with Base64 encoding. This is due to a breaking change in rfc3986.

As a result the service now encodes with CGI.escape instead of Base64.  No unescape is needed by the client here as sinatra handles that automatically.