ascii85 has a function to get the maximum length of an encoding MaxEncodedLen(). I think that it should have too a function to get the length at decoding like it has in Base64.
If you have binary data that you need to encode, what encoding scheme do you use? I know about: Hex encoding. Very simple, but quite verbose, expands one byte to two.