title: PyCrypto: Encode chinese charaters with RSA asymmetric key
body: <p>I am trying to use PyCrypto to encrypt/decrypt some strings, and I am having troubles with Chinese characters.</p>
  
  <p>When I try to encrypt "<em>ni-hao</em>" (<em>hello</em>)...</p>
  
  <pre><code>pemFile = open("/home/borrajax/keys/myKey.pem", "r")
  encryptor = RSA.importKey(pemFile, passphrase="f00")
  return encryptor.encrypt("你好", 0)[0]
  </code></pre>
  
  <p>... I keep getting errors:</p>
  
  <pre><code>Module Crypto.PublicKey.pubkey:64 in encrypt         
  &gt;&gt;  ciphertext=self._encrypt(plaintext, K)
  Module Crypto.PublicKey.RSA:92 in _encrypt         
  &gt;&gt;  return (self.key._encrypt(c),)
  ValueError: Plaintext too large
  </code></pre>
  
  <p>I have tried many combinations,</p>
  
  <pre><code>encryptor.encrypt(u"你好"...
  encryptor.encrypt(u"你好".encode("utf-8")...
  </code></pre>
  
  <p>without any luck.</p>
  
  <p>I guess I could always try to use base64 before encoding, but I'd like to leave that as a "last resource"... I was hoping for a more "elegant" way of doing this.</p>
  
  <p>Has anyone encountered the same problems? Any hint will be appreciated. Thank you in advance.</p>