https://web.archive.org/web/20110422225659/https://en.wikipedia.org/wiki/Base64#URL_applications
talks about base64Url - Decode
a modified Base64 for U
In the Android SDK, there's a dedicated flag in the Base64 class: Base64.URL_SAFE, use it like so to decode to a String:
Base64
Base64.URL_SAFE
import android.util.Base64; byte[] byteData = Base64.decode(body, Base64.URL_SAFE); str = new String(byteData, "UTF-8");