Don't use retry on a LoadError; it can trigger infinite loops.
require 'enc/trans/single_byte' is a MRI-specific hack.