Setting file encoding to ascii-8bit (for ruby 2.0.0)

The explicit specification of the file encoding prepares the files for a
migration to ruby 2.0.0. It does not break support for ruby versions
prior 2.0.0.
adjust usage of mocks to changes in MiniTest
cleanup protocol/block spec
Block.from_json: check block hash and merkle root