improved constantize, shamelessly stolen from resque ;)