Restore Python 2.x compatibility

- Don't try to format Unicode characters into str literals.

- Don't try to call unicode.isprintable.