Support unicode characters in printable-function

`repr` function returns `str`, which is not liked by `jinja2` if non-ascii characters occur.