```encode``` is 1.9+ only.  We're going to drop support for 1.8 in a few months, but can't break it before then.  One of the Rex::Text unicode methods ought to suffice for this.