Add "# encoding: utf-8" to all Ruby files

While this doesn't solve any encoding-related problems, it may prevent
them in the future.