code: public static String encodeUrlSafeBase64(String value) {
          return new String(UrlSafeBase64.encode(value.getBytes(Charsets.UTF_8)));
      }
docs: Encode a String to base64 using variant URL safe encode scheme
  @param value the plain string
  @return the base64 encoded String that is URL safe