prevent deprecation message in Ruby 2.1+ (works on 1.9.3+)

As discussed in #35, this is a much simpler and better way to prevent the deprecation message. May break on Ruby < 1.9.3.