multi encoder for ruby 2.0.0
Merge pull request #6 from jyr/master

multi encoder for ruby 2.0.0