code: public static byte[] encodeBase64(final byte[] binaryData, final boolean isChunked, final boolean urlSafe) {
          return encodeBase64(binaryData, isChunked, urlSafe, Integer.MAX_VALUE);
      }
docs: Encodes binary data using the base64 algorithm, optionally chunking the output into 76 character blocks.
  
  @param binaryData
  Array containing binary data to encode.
  @param isChunked
  if {@code true} this encoder will chunk the base64 output into 76 character blocks
  @param urlSafe
  if {@code true} this encoder will emit - and _ instead of the usual + and / characters.
  <b>Note: no padding is added when encoding using the URL-safe alphabet.</b>
  @return Base64-encoded data.
  @throws IllegalArgumentException
  Thrown when the input array needs an output array bigger than {@link Integer#MAX_VALUE}
  @since 1.4