Official ruby 2.0.0 support

File encoding and MiniTest fix. All specs running without problems on ruby 1.9.3 and 2.0.0.