Encodes a string to base64 URL-safe format.
The string to encode.
The base64 URL-safe encoded string, or null if the input is not a string.
null
Encodes a string to base64 URL-safe format.