Base32 performance optimization, improved tests all round.