debug call with Unicode string causes exception

I tried to adopt the approach used elsewhere in Willie's code, but my results do *not* actually resolve the problem noted in #507. Why is incredibly not-obvious to me, but if folks can point me in the right direction I'd love to finish this up so that it *does* fix the problematic behavior.