Encode text to Base64

Encodes a string so that it conforms to Base64 data Encoded format.