add regression test for non-optimised unicode.encode() calls
avoid useless lookup of unknown encoding (fixes compiler crash)

--HG--
extra : transplant_source : %D5%D9Izb%7F%E6%AF%91%9A2j%25%FC%27%85%7CFs5