Force encoding logger output

- See
  https://github.com/paperlesspost/rails/commit/e786726603763d09a15c63933c136d305e0ea8f2
for more info
Don't require iconv if using ruby 1.9