Check RUBY_VERSION to use force_encoding
Merge pull request #8 from tats/bug/ruby18

Check RUBY_VERSION to use force_encoding