URL safe base64 encoding

- updated base64 escaping to respect + and \
- updated base64 escaping to remove = during transport
- updated tests