Adds unicode compatibility support

Ensures that the necessary strings that need to be unicode, stay
unicode in both py2 and py3 when running layman.

dbbase.py: Adds py2/py3 unicode compatibility when writing to ElementTree.