Rubocop: Add magic encoding comment (utf-8)

Depends on commits from #2589

Rubocop checks for encoding comment in 1.9.3. This adds the magic comment to the top of all Ruby files to satisfy this.