handle 404 from linked accounts, and more fixes for unicode