Introduction - If you have any usage issues, please Google them yourself
Converts the first len characters in uc from Unicode to this encoding, and returns the result in a byte array. The state contains some conversion flags, and is used by the codec to maintain state information for Linux.