This commit implements the `phogen_encode` function, which takes a bhash as argument and generates a phonetic string.
This is prep work for the moving to Meson.