fixed non-ascii traceback message

Just discovered that postgres and psycopg can raise exceptions with localized messages.
Those exceptions were breaking `handle_error` itself.