also test 2.0
make decode work in Ruby 2.0
restore 1.8 support