websafe base64 encode/decode for erlang