Very very simple URL-safe base64 encoding and decoding.