fix force_encoding use without checking if it is available
Time.new in ruby1.8 does not accept arguments
Merge pull request #7 from toy/master

Make work with ruby 1.8