I have the following line of code for a Windows forms application:
return Encoding.ASCII.GetBytes(chars.ToArray());
This line worked fine, but
Try using Encoding.UTF8 - Silverlight is unicode only.