This better matches what one would expect from the hex or base64 (upcoming) formats.
Implement phogen.encode() to encode Bhashes to phogen strings. This commit also adds unit tests for the above function.
This commit also adds the first unit test. The unit test compares the phonetic map generated by the Python and by the C implementation and fails if the generated maps are different.