a simple implementation of Base32 and Base64 coding scheme