migration ids to base64 url safe