title: Encryption of foreign characters with javascript library does not work
body: <p>Has anyone had good luck encrypting foreign chars with any javascript library?</p>
  
  <p>I am encrypting foreign characters using jCryption v. 1.4 library (RSA algo).
  Looks like the library does not work well with foreign characters (I am using cp1251).
  The encryption works well with ASCII/english chars, but I get garbled chars after decryption of foreign ones.</p>
  
  <p>I believe the problem comes from the way jCryption converts char string to bytes.
  It shifts the char by 8 bits only and &amp;'s 2 char together.  The foreign chars occupy > 8 bits for sure.</p>
  
  <p>Any ideas would be appreciated!<br>
  Dmitriy</p>