Implement base32 encoding.