Fix when non-ascii names seem to break login