avoid useless lookup of unknown encoding (fixes compiler crash)