modified base64 class