Rewritten functions to_unicode_or_bust() and to_utf8_or_bust() in pb_base/common.py, added function to_str_or_bust() in pb_base/common.py, added unittests for these functions in test/test_common.py
Used to_str_or_bust() in pb_base/daemon.py and pb_base/pidfile_app.py