Match encoding header in a more general way

Makes annotate_models compatible with magic_encoding by recognizing comments like # -*- encoding : utf-8 -*-

Syntax taken from the irb source: https://github.com/ruby/ruby/blob/ruby_2_0_0/lib/irb/magic-file.rb