Encode a number as a websafe string base64 string