Added method to determine output length of encoded string.

This is useful for calculating the size of fields or other storage requirements when using a custom alphabet.
Merge pull request #14 from kevinastone/master

Added method to determine output length of encoded string.
Add some more tests.