Switch hex string parsing to use String#hex to keep Ruby 1.8 happy.