Regarding special characters in the login name, do you know if using mapping in the postgresql pg_ident.conf would work? I see some examples in some recordings like this one ( https://www.youtube.com/watch?v=GWb7t8J73Fc ) and have attempted it but can't get it to work yet.
Example of a mapping in pg_ident:
# MAPNAME SYSTEM-USERNAME PG-USERNAME
SSPI XWikiDBOwner@youraddress postgres
Then a reference is placed in the pg_hba.conf file
host all postgres 127.0.0.1/32 sspi map=SSPI
Thanks for any insight!