Added a Base64 Encode function