Hi,
Thank you very much for sharing this info. I had the same problem after implementing a custom membership provider and login page & web part, I was receiving ‘Exception … ArgumentException … encodedValue’ error message when signining out. By following the approach you've suggested, create a custom sign out page with the above code, it works.
I found it also happens when you select 'Sign In as a different user' option from the Welcome menu. Did you find a solution for that?
Thanks again!
No, I haven’t this exception in the sing in as a different user. Now I’m working in another project and can’t check it. Sorry. But if I find answer I will write to you. Thanks for question. SharePoint sometimes is very bad for our nervous.