Riddle.encode was failing due to ::Encoding.default_external not defined

Swapped the encoding check to use the local @@use_encoding var before calling default_external. The class was defined, but not the method.

This issue was found using ruby 1.8.7p371 & rails 2.3.16.

Thanks for the gem!