in reply to Losing Bits with Pack/Unpack
Are you trying to maximize the amount of data you can stuff into a single tweet by abusing Twitter's arbitrarily defined character limit rules?
If yes, there are schemes for that: see e.g. https://github.com/qntm/base2048
In Section
Seekers of Perl Wisdom