minor traceback beautification for string conversion helper functions