in reply to Unicode (Hebrew) Module

use encoding is problematic. If you have UTF-8 source code, you want use utf8;.

U+FFFD is used when a decoder encounters bad input.

The module says "The input string is assumed to be in iso-8859-8 encoding by default." What you are passing it is not encoded using iso-8859-8. It's not encoded at all, in fact.