open the file for YAML.load

looks to be related to https://bugs.ruby-lang.org/issues/6487
fixes gh-30
ensure yaml file is closed
Merge pull request #31 from leedo/yaml-errors

Pass an IO stream to YAML.load

Workaround for https://bugs.ruby-lang.org/issues/6487.