Refactor base64 decoding
Fourth programmation challenge