Add encoding to formatter spec to fix Ruby 1.8.