You should use `{0!r}` in order to get the `repr()` of the objects.
I'm pretty sure that the `filepath` won't have a non-ascii character, but just in case. And the same for the exception I think.