Added Base64 utility functions