GroupShare Basic authentication problem if € character in password

Hi,

there seems to be a problem when the password contains € character, if I try to authenticate to the GS server using Basic authentication. This is how I generate the header:

req.Headers["Authorization"] = string.Format("Basic {0}", Convert.ToBase64String(Encoding.UTF8.GetBytes(string.Format(CultureInfo.InvariantCulture, "{0}:{1}", userName, password))));

But I get "Unauthorized (401)".

If I change the password, and replace € with some other character, then the same method works. I have also tried with different encodings, same result.

Could you please advise how to workaround this problem? (Other than asking the users not to use € in their passwords :).

Thanks,

Tamas