base64 processing functions renamed to avoid conflicts with other libraries