hook into Kernel#open to read YAML encoded files