Added jmchambers debug from jtzemp/base62 to avoid infinite loop in Rails 3.07