Rake stats not working <p>I'm trying to fetch some information about my project with rake stats but I'm getting the following </p> <pre><code>rake aborted! ArgumentError: invalid byte sequence in UTF-8 </code></pre> <p>When I run the command bundle exec rake stats with --trace, I get the following:</p> <pre><code>ArgumentError: invalid byte sequence in UTF-8 /Users/andrefurquin/.rvm/gems/ruby-2.1.2/gems/railties-3.2.22/lib/rails/code_statistics.rb:50:in `block in calculate_directory_statistics' /Users/andrefurquin/.rvm/gems/ruby-2.1.2/gems/railties-3.2.22/lib/rails/code_statistics.rb:32:in `foreach' /Users/andrefurquin/.rvm/gems/ruby-2.1.2/gems/railties-3.2.22/lib/rails/code_statistics.rb:32:in `calculate_directory_statistics' /Users/andrefurquin/.rvm/gems/ruby-2.1.2/gems/railties-3.2.22/lib/rails/code_statistics.rb:34:in `block in calculate_directory_statistics' /Users/andrefurquin/.rvm/gems/ruby-2.1.2/gems/railties-3.2.22/lib/rails/code_statistics.rb:32:in `foreach' /Users/andrefurquin/.rvm/gems/ruby-2.1.2/gems/railties-3.2.22/lib/rails/code_statistics.rb:32:in `calculate_directory_statistics' /Users/andrefurquin/.rvm/gems/ruby-2.1.2/gems/railties-3.2.22/lib/rails/code_statistics.rb:26:in `block in calculate_statistics' /Users/andrefurquin/.rvm/gems/ruby-2.1.2/gems/railties-3.2.22/lib/rails/code_statistics.rb:26:in `map' /Users/andrefurquin/.rvm/gems/ruby-2.1.2/gems/railties-3.2.22/lib/rails/code_statistics.rb:26:in `calculate_statistics' /Users/andrefurquin/.rvm/gems/ruby-2.1.2/gems/railties-3.2.22/lib/rails/code_statistics.rb:7:in `initialize' /Users/andrefurquin/.rvm/gems/ruby-2.1.2/gems/railties-3.2.22/lib/rails/tasks/statistics.rake:15:in `new' /Users/andrefurquin/.rvm/gems/ruby-2.1.2/gems/railties-3.2.22/lib/rails/tasks/statistics.rake:15:in `block in &lt;top (required)&gt;' /Users/andrefurquin/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `eval' /Users/andrefurquin/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `&lt;main&gt;' </code></pre> <p>What can I do to solve this ?</p>