URL safe base64 string encoding

- URL safe base64 string encoding; 
- fix the encoding signature; 
- update scala and dependencies version
- fix unit test