Use urlsafe to encode Base64

Using urlsafe_encode64 method instead of encode64 on Base64, this allows to use longer param values since line feeds are added to every 60 encoded characters.