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