added utf8 forcing, corrected rounding errors, added resque-lock to prevent duplicate jobs