Refactored Base64 Encoding as Category